<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>

<xsl:template match="menuBanner">

<xsl:variable name="selitem">
<xsl:for-each select="menuItem">
<xsl:choose>
	<xsl:when test='count(page[contains(/menuBanner/@actualPage,@url)]) &gt; 0'>
		<xsl:value-of select="@id"/>
	</xsl:when>
</xsl:choose>
</xsl:for-each>
</xsl:variable>

<div style="text-align:center; padding-top:10px;">
<table class="labellina" border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="bottom">

<td width="50%" style="border-bottom: 1px solid #DDDDDD;">&#160;</td>
<xsl:for-each select="menuItem">

<xsl:choose>
	<xsl:when test='count(page[contains(/menuBanner/@actualPage,@url)]) &gt; 0'>
		<xsl:choose>
		<xsl:when test='@base'>
			<td style="background: #FFFFFF; padding-bottom:4px; padding-top:4px; padding-left:8px; padding-right:8px; border-left: 1px solid #DDDDDD; border-right: 1px solid #DDDDDD; border-top: 1px solid #DDDDDD;" width="1%"><a class="navi" href="{@base}"><nobr><b><xsl:value-of select="@item"/></b></nobr></a></td>
		</xsl:when>
		<xsl:otherwise>
			<td style="background: #EFE9D3; padding-bottom:4px; padding-top:4px; padding-left:8px; padding-right:8px; border: 1px solid #DDDDDD;" width="1%"><b><nobr><font style="color:#666666;" class="labellina"><xsl:value-of select="@item"/></font></nobr></b></td>
		</xsl:otherwise>
		</xsl:choose>
	</xsl:when>
	<xsl:otherwise>
		<td style="background: #000; padding-bottom:4px; padding-top:4px; padding-left:8px; padding-right:8px; border-bottom: 1px solid #DDD;" width="1%"><a class="navi" href="{@base}" style="color:#CCC;"><nobr><xsl:value-of select="@item"/></nobr></a></td>
	</xsl:otherwise>
</xsl:choose>

<td width="1%" style="padding-left:2px; border-bottom: 1px solid #DDDDDD;">&#160;</td>

</xsl:for-each>
<td width="50%" style="border-bottom: 1px solid #DDDDDD;">&#160;</td>
</tr>
</table>

</div>

</xsl:template>

</xsl:stylesheet>